<?php
$dicter=[
    "p"=>"/^[0-9A-Za-z_]{1,20}$/",
    "token"=>"/^[0-9A-Za-z]{10,}$/",
    "s_no"=>"/^[0-9A-Za-z\u4e00-\u9fff]{4,20}$/",
    "s_name"=>"/^.{1,90}$/",
    "s_dept"=>"/^.{1,300}$/",
    "s_mail"=>"/^([a-zA-Z]|[0-9])(\w|\-)+@(mail.foxconn.com)|(foxconn.com)$/",
    "s_id"=>"/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/",
    "mail"=>"/^([a-zA-Z0-9]+[_|_|\-|.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|_|.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,6}$/",
    "s_date"=>"/^\d{4}\-(0[1-9]|1[0-2])\-(0[1-9]|[1-2][0-9]|3[0-1])$/",
    "s_mobile"=>"/(^\d{11}$)|(^([6|9])\d{7}$)|(^[6]([8|6])\d{5})/",
    "s_file"=>"/^.{1,300}$/"
];
?>